<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改诊疗单')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ncZhenliaoLogs-edit" th:object="${ncZhenliaoLogs}">
            <input id="zlId" name="zlId" th:field="*{zlId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">鸡舍号：</label>
				<div class="col-sm-8">
					<input id="roomNum" name="roomNum" th:field="*{roomNum}" class="form-control" type="text">
				</div>
			</div>
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">日龄：</label>
				<div class="col-sm-8">
					<input id="ageDays" name="ageDays" th:field="*{ageDays}" class="form-control" type="text">
				</div>
			</div>-->
			<div class="form-group">	
				<label class="col-sm-3 control-label"> 发病次数：</label>
				<div class="col-sm-8">
					<input id="illMuns" name="illMuns" th:field="*{illMuns}" class="form-control" type="text" required onkeyup=" value=value.replace(/^(0+)|[^\d]+/g,'')" min="0">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">症状：</label>
				<div class="col-sm-8">
					<input id="symptom" name="symptom" th:field="*{symptom}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark"  class="form-control valid" type="text" rows="4" th:field="*{remark}"></textarea>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/ncChickenZhenliaoLogs";
		$("#form-ncZhenliaoLogs-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-ncZhenliaoLogs-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
